package com.sjl.springboot.domain.enums;


/**
 * Created by Howell on 18/1/17.
 */

public enum CommonCode {
    /**
     * 返回状态码
     */
    Success_msg("TRADE_000", "操作成功"),
    Insert_false("TRADE_001","插入失败"),
    Select_false("TRADE_002","查找失败"),
    Update_false("TRADE_003","更新失败"),
    Result_empty("TRADE_004","没有记录"),
    Delete_false("TRADE_005","删除失败"),
    Delete_NULL("TRADE_006","删除Id不为空"),
    Select_error("TRADE_007","查询异常"),
    Server_error("TRADE_500","服务器异常"),
    Paramter_error("TRADE_008","参数传递异常"),
    DO_NOTHING("TRADE_010","无任何操作"),
    Sign_Fail("TRADE_011","签章失败，请重新签章"),
    Member_error("TRADE_009","没有查到此用户信息"),
    DELIVERY_ERROR("DELIVERY_ERROR","闭市状态无法进行金钱交易");




    private String code;
    private String msg;

    CommonCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "CommonDeliveryCode{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                '}';
    }
}
